﻿using Polaris.Domain.Model.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Polaris.Domain.Model.DtoWebSite.Article.Response
{
    public class ArticleGroupByYearResponse
    {
        /// <summary>
        /// 年
        /// </summary>
        public string Year { get; set; }

        /// <summary>
        /// 文章数量
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// 文章数据
        /// </summary>
        public List<ArticleListResponse> ArticleList { get; set; }
    }

    public class ArticleListResponse
    {
        /// <summary>
        /// id
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 是否红旗
        /// </summary>
        public bool IsRedFlag { get; set; }

        /// <summary>
        /// 年
        /// </summary>
        public string Years { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        public string Date { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 标签描述
        /// </summary>
        public string TagDescription { get; set; }

        /// <summary>
        /// 文章类型
        /// </summary>
        public ArticleType Type { get; set; }
    }

    /// <summary>
    /// 为了方便做Union 的类
    /// </summary>
    public class ArticleBase
    {
        /// <summary>
        /// id
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 是否红旗
        /// </summary>
        public bool IsRedFlag { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 标签描述
        /// </summary>
        public string TagDescription { get; set; }

        /// <summary>
        /// 文章类型
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 心情
        /// </summary>
        public string? Mood { get; set; }

        /// <summary>
        /// 天气
        /// </summary>
        public string? Weather { get; set; }
    }
}
